Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve utf8 to utf16 conversion performance #2784

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Sep 24, 2024

Introduces fastEncodeUtf16 function that uses simdutf under the hood to convert utf8 inputs to utf16. The changeset also includes the usage of simdutf::validate_ascii to check if an input is a valid ascii.

@anonrig
Copy link
Member Author

anonrig commented Sep 24, 2024

Passes all internal tests.

@anonrig anonrig merged commit c226a56 into main Sep 24, 2024
14 of 16 checks passed
@anonrig anonrig deleted the yagiz/improve-utf16 branch September 24, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants